<style>
    .layui-iconpicker-body.layui-iconpicker-body-page .hide {
        display: none;
    }
    .select_a {
            color: #009688;
            padding: 2px;
            margin: 2px;
            border: #009688 1px dashed;
        }
</style>
<link rel="stylesheet" href="__STATIC__/plugs/lay-module/autocomplete/autocomplete.css?v={$version}" media="all">
<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        <input type="hidden" name="uid" value="{$row['uid']|default=''}">
        <div class="layui-form-item">
            <label class="layui-form-label">课程id</label>
            <div class="layui-input-block">
                <select name="study_course_id" class="layui-select" lay-search>
                    <option value="">请选择</option>
                    {foreach $alldata['field']['study_course_id']['option'] as $key=>$vo}
                    {if isset($vo['child'])&&count($vo['child'])}
                    <optgroup label="{$vo.name|raw}">
                    {foreach $vo['child'] as $k=>$v}
                    {if isset($row['study_course_id'])&&$row['study_course_id']==$v.id}
                    <option value="{$v.id}" selected>{$v.name|raw}</option>
                    {else}
                    <option value="{$v.id}">{$v.name|raw}</option>
                    {/if}
                    {/foreach}
                    {else}
                    {if isset($row['study_course_id'])&&$row['study_course_id']==$vo.id}
                    <option value="{$vo.id}" selected>{$vo.name|raw}</option>
                    {else}
                    <option value="{$vo.id}">{$vo.name|raw}</option>
                    {/if}
                    {/if}
                    {/foreach}
                </select>
                <tip></tip>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">状态</label>
            <div class="layui-input-block">
                <input name="status" class="switch" value="1" type="checkbox" lay-skin="switch" lay-text="开启|关闭" {if $alldata['field']['status']['default']==1}checked=""{/if}>
            </div>
        </div>

        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>
<script>
    var parameter = '{$parameter|raw|default=""}';
</script>